package com.hl.qzzpbackend.controller;

import com.hl.qzzpbackend.common.BaseResponse;
import com.hl.qzzpbackend.common.ResultUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title: TestController
 * @Author helong
 * @Package com.hl.qzzp.controller
 * @Date 2025/1/6 09:56
 * @description: 测试 controller
 */
@RestController
@RequestMapping("/")
public class TestController {

    /**
     * 健康检查
     * @return
     */
    @RequestMapping(value = "/health", method = RequestMethod.GET)
    public BaseResponse<String> health(){
        return ResultUtils.success("ok");
    }
}
